﻿using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;

namespace Blog.Controllers
{
	[Route("api/[controller]")]
	[ApiController]
	public class TestController : ControllerBase
	{
		[HttpGet("Authorize")]
		[Authorize]
		public string Authorize() {
			return "Authorize";
		}

		[HttpGet("NoAuthorize")]
		public string NoAuthorize()
		{
			return "NoAuthorize";
		}
	}
}
